package lab02.test15;

/**
 * Created by 林云志 on 2017/10/20.
 */
public class Test {
    public static void main(String[] args) {


        Graduate zhangsan = new Graduate();
        zhangsan.fee = 10000;
        zhangsan.getFee();
        zhangsan.setFee();
        zhangsan.pay = 5000;
        zhangsan.getFee();
        zhangsan.setFee();
        if (zhangsan.getFee() - zhangsan.getPay()<2000){
            System.out.println("You  need a loan!");

        }else System.out.println("You income is enough！");
    }
}
